<%@page import="java.util.HashMap"%>
<%@page import="com.jfinal.plugin.ehcache.CacheKit"%>
<%@page import="java.util.List"%>
<%@page import="com.qysoft.rapid.utils.DateUtil"%>
<%@page import="com.qysoft.rapid.utils.RenderHelper"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%=RenderHelper.includedJavascript(request, "/static/plugin/My97DatePicker/WdatePicker.js")%>
<%=RenderHelper.includedStyle(request, "/static/plugin/jqgrid/css/ui.jqgrid.css") %>
<%=RenderHelper.includedStyle(request, "/static/plugin/jqgrid/css/jquery-ui.theme.min.css") %>
<%=RenderHelper.includedStyle(request, "/static/plugin/layer/skin/layer.css") %>
<%=RenderHelper.includedStyle(request, "/static/css/common.css") %>
<script type="text/javascript">
	var ctx = "<%=request.getContextPath()%>";
</script>
<title>税源企业管理</title>
</head>
<body>
<!-- 操作按钮区 -->
<div class="search_div">
	<form id="searchForm" action="">
		<span class="search_font">企业名称：</span>
		<input id="s_qymc" name="s_qymc" class="search_input" onkeypress="if(event.keyCode==13) {refreshQYXX();;return false;}"/>
		<button type="button" class="_searchbtn" onclick="refreshQYXX();">查询</button>
		<button type="button" class="_btn" onclick="formReset('searchForm');">重置</button>
		<span class="fl_r">
		<button type="button" class="_masterbtn" onclick="openAddQyxx();">新增</button>
		<button type="button" class="_btn" onclick="refreshQYXX();">刷新</button>
		</span>
	</form>
</div>
<!-- 表格区 -->
<table id="qyxxGrid"></table> 
<div id="gridPager"></div>

<div id="ryxxContent" style="display: none;">
	<div class="megbox">
		<form id="qyxxForm" name="qyxxForm" class="megbox_form">
			<input type='hidden' id='qyid' name='qyid' />
			<dl class="megbox_dl">
				<dd>
					<span style="color:red">* </span><label>企业名称：</label>
					<span class="megbox_span">
						<input id="qymc" name="qymc" class="{validate:{required:true,messages:{required:'企业名称为必填项！'}}} megbox_input" type="text" style='width:479px;'>
					</span>
				</dd>
			</dl>
			<dl class="megbox_dl">
				<dd>
					<span style="color:red">* </span><label>企业简称：</label>
					<span class="megbox_span">
						<input id="qyjc" name="qyjc" class="{validate:{required:true,messages:{required:'企业简称为必填项！'}}} megbox_input" type="text">
					</span>
				</dd>
				<dd>
					<span style="color:red">* </span><label>企业类型：</label>
					<span class="megbox_span">
						<select id='qylx' name='qylx' class='megbox_select'>
							<option value='1'>上市公司</option>
							<option value='0'>非上市公司</option>
						</select>
					</span>
				</dd>
			</dl>
			<dl class="megbox_dl" id='sfgs_dl'>
				<dd>
					<span style="color:red">* </span><label>所属板块：</label>
					<span class="megbox_span">
						<select id='ssbk' name='ssbk' class='megbox_select'>
							<option value='1'>主板</option>
							<option value='2'>创业板</option>
							<option value='3'>新三板</option>
							<option value='4'>Q版</option>
						</select>
					</span>
				</dd>
				<dd>
					<label>股票代码：</label>
					<span class="megbox_span">
						<input id="gpdm" name="gpdm" class="megbox_input" type="text">
					</span>
				</dd>
			</dl>
			<dl class="megbox_dl">
				<dd>
					<label>公示代码：</label>
					<span class="megbox_span">
						<input id="gsdm" name="gsdm" class="megbox_input" type="text" style='width:479px;'>
					</span>
				</dd>
			</dl>
			<dl class="megbox_dl">
				<dd style="width:570px;">
					<p class="fl_r">
						<button type="button" id='save_btn' class="_masterbtn" onclick="saveQyxx();">保存</button>
						<button type="button" class="_btn" onclick="qyClose();">关闭</button>
					</p>
				</dd>
			</dl>
		</form>
	</div>
</div>
<%=RenderHelper.includedJavascript(request, "/static/plugin/jquery.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/plugin/jquery.form.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/plugin/jqgrid/jquery.jqGrid.min.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/plugin/jqgrid/grid.locale-cn.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/plugin/layer/layer.js") %>
<%=RenderHelper.includedJavascript(request, "/static/plugin/validate/jquery.validate.min.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/plugin/validate/jquery.metadata.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/plugin/validate/messages_cn.js") %> 
<%=RenderHelper.includedJavascript(request, "/static/js/common.js") %>
<%=RenderHelper.includedAutoJavascript(request)%> 

</body>
</html>